import os

def main():
    raw_video = "data/raw/Jannik Sinner vs Carlos Alcaraz Extended Highlights ｜ Indian Wells 2024 [P3eXD15w7So].webm"
    if not os.path.exists(raw_video):
        print("Video not found, please prepare with yt-dlp")
        return

    print("[INFO] Starting match analysis...")
    # TODO: 调用事件检测模型
    # TODO: 调用 OCR 模块解析比分
    # TODO: 保存逐拍数据到 outputs/match.csv
    print("[DONE] Match analysis complete. Results saved to outputs/")


if __name__ == "__main__":
    main()
